package com.wy.timer.impl2;

/**
 * @author 美女
 * @date 2022/05/03 11:02
 **/
public class Main {
    public static void main(String[] args) {
        MyTimer timer=new MyTimer();
        Task1 t1=new Task1();
        Task2 t2=new Task2();
        Task3 t3=new Task3();
        Task4 t4=new Task4();
        Task5 t5=new Task5();
        timer.schedule(t1,5000);
        timer.schedule(t2,4000);
        timer.schedule(t3,3000);
        timer.schedule(t4,2000);
        timer.schedule(t5,1000);
    }
}
